package model;

import javax.faces.model.ListDataModel;

import org.primefaces.model.SelectableDataModel;

public class Instance{

	String msisdn;
	String regId;
	String lat="41.023625" ;
	String lng= "29.224591 ";
	String county="Turkey";
	String ilce = "Melikgazi";
	String mahalle  ="Kiranardi";
	String city = "Kayseri";
	String company= "Test";
	
	
	public String getMsisdn() {
		return msisdn;
	}
	public void setMsisdn(String msisdn) {
		this.msisdn = msisdn;
	}
	public String getRegId() {
		return regId;
	}
	public void setRegId(String regId) {
		this.regId = regId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((regId == null) ? 0 : regId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Instance other = (Instance) obj;
		if (regId == null) {
			if (other.regId != null)
				return false;
		} else if (!regId.equals(other.regId))
			return false;
		return true;
	}
	public Instance(String msisdn, String regId,String company) {
		super();
		this.msisdn = msisdn;
		this.regId = regId;
		//this.company = company;
	}
//	public Object getRowKey(Instance object) {
//		// TODO Auto-generated method stub
//		return object.getRegId();
//	}
//	public Instance getRowData(String rowKey) {
//		// TODO Auto-generated method stub
//		return new Instance("", rowKey);
//	}
	public String getLat() {
		return lat;
	}
	public void setLat(String lat) {
		this.lat = lat;
	}
	public String getLng() {
		return lng;
	}
	public void setLng(String lng) {
		this.lng = lng;
	}
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public String getIlce() {
		return ilce;
	}
	public void setIlce(String ilce) {
		this.ilce = ilce;
	}
	public String getMahalle() {
		return mahalle;
	}
	public void setMahalle(String mahalle) {
		this.mahalle = mahalle;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	
	
	
}
